import zhreq from "@/api/axios";

export default {
  // 分页查询
  postPageQuery(params) {
    return zhreq.sheepOut.post('health/v1/blight/queryPageList', params)
  },

  // 添加
  postAdd(params) {
    return zhreq.sheepOut.post('health/v1/blight/add', params)
  },

  // 删除
  postDel(params) {
    console.log('删除接口', params)
    return zhreq.sheepOut.post('health/v1/blight/delList', params)
  },
  // 获取疫病名称下拉框数据
  getQueryName() {
    return zhreq.sheepOut.get('health/v1/blight/queryName')
  },
  // 条件查询
  postQueryCondition(params) {
    return zhreq.sheepOut.post('health/v1/blight/queryByCondition', params)
  },
  // 修改 /health/v1/blight/edit
  postEdit(params) {
    return zhreq.sheepOut.post('/health/v1/blight/edit', params)
  }
}
